package com.battery.system.mapper;

import java.util.List;

import com.battery.system.base.BaseMapper;
import com.battery.system.domain.RefundOrder;

/**
 * 退款订单Mapper接口
 *
 * @author battery
 * @date 2021-01-22
 */
public interface RefundOrderMapper extends BaseMapper<RefundOrder> {
    /**
     * 查询退款订单
     *
     * @param id 退款订单ID
     * @return 退款订单
     */
    public RefundOrder selectRefundOrderById(String id);

    /**
     * 查询退款订单列表
     *
     * @param refundOrder 退款订单
     * @return 退款订单集合
     */
    public List<RefundOrder> selectRefundOrderList(RefundOrder refundOrder);

    /**
     * 新增退款订单
     *
     * @param refundOrder 退款订单
     * @return 结果
     */
    public int insertRefundOrder(RefundOrder refundOrder);

    /**
     * 修改退款订单
     *
     * @param refundOrder 退款订单
     * @return 结果
     */
    public int updateRefundOrder(RefundOrder refundOrder);

    /**
     * 删除退款订单
     *
     * @param id 退款订单ID
     * @return 结果
     */
    public int deleteRefundOrderById(String id);

    /**
     * 批量删除退款订单
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteRefundOrderByIds(String[] ids);
}
